import {
	createRouter,
	createWebHashHistory
} from 'vue-router';

import Login from '../components/Login.vue';
import Index from '../components/Index.vue';
import FeedbackList from "../components/FeedbackList.vue";
import FeedbackInfo from "../components/FeedbackInfo.vue";
import FeedbackDetail from "../components/FeedbackDetail.vue";
import FeedbackAssign from "../components/FeedbackAssign.vue";
import ConfirmAqi from "../components/ConfirmAqi.vue";
const routes = [{
		path: '/login',
		name: 'login',
		component: Login
	},
	{
		path: '/index',
		name: 'index',
		component: Index,
		children: [{
				path: '/feedbackList',
				name: 'feedbackList',
				component: FeedbackList
			},
			{
				path: '/feedbackInfo',
				name: 'feedbackInfo',
				component: FeedbackInfo
			},
			{
				path: '/feedbackAssign',
				name: 'feedbackAssign',
				component: FeedbackAssign
			},
			{
				path: '/confirmAqi',
				name: 'confirmAqi',
				component: ConfirmAqi
			}
		]
	}
];

const router = createRouter({
	history: createWebHashHistory(),
	routes
});

export default router